Robotics 1.0 Lesson Plan
Lesson 7 - Clap It On
1 class (Duration: 1 hour 30 minutes; maximum 4 students per group).
Laptop or desktop with Mu Editor installed.
CircuitPython installed on the CPX board.
Circuit Playground Express (CPX) board with USB cable.
Relay.
External battery.
Bulb.
Jumper wires.
Understanding of sensors.
Basic Python syntax (loops, if-else, functions).
Connect an externally powered light to the CPX and control ON/OFF by detecting a clap sound.
1. Connection part for relay and light with CPX (Recap: Lesson Plan 5).
2. Here is a document showing code hints (pseudocode):
When a function is called again and again, does it remember the old values inside it, or does it start fresh? Why?